
module("NetWork.Action.JoinGroupAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

JoinGroupAction = NetCmdActionBase:new()

function JoinGroupAction:Action(bytes)
    local JoinGroupSm = require("Protol.groupMessage_pb").JoinGroupSm()
    JoinGroupSm:ParseFromString(bytes)

    if JoinGroupSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(JoinGroupSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.JoinGroupSm(JoinGroupSm)
end

require("NetWork.NetCmdSet").CmdSet[2002] = JoinGroupAction --注册处理对象
